package com.team11.server.service.admin;


import com.team11.server.mapper.Admin_Insert_S_Mapper;
import com.team11.server.pojo.StuInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Admin_Insert_S_Service {
    @Autowired
    private Admin_Insert_S_Mapper admin_insert_s_mapper;


    public String Sel_have_T(StuInformation stuInformation){
        Integer t=admin_insert_s_mapper.Sel_have_S(stuInformation);
        if (t>0){
            return "学号或身份证已存在";
        }
        else return "1";
    }

    public String Insert_S(StuInformation stuInformation){
        Integer t=admin_insert_s_mapper.Insert_S(stuInformation);
        if (t>0){
            return "新增成功";
        }
        else return "新增失败";
    }
}
